# $Id: PKGBUILD 74193 2012-07-22 19:47:13Z lfleischer $
# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>

pkgname=libdaq
pkgver=1.1.1
pkgrel=1
pkgdesc='Data Acquisition library for packet I/O.'
arch=('i686' 'x86_64')
url='http://www.snort.org/'
license=('GPL')
depends=('libpcap')
makedepends=('ca-certificates')
options=('!libtool')
source=("http://www.snort.org/dl/snort-current/daq-${pkgver}.tar.gz"{,.sig})
md5sums=('bc204ea09165b4ecbb1bb49c7c1a2ad4'
         '3ec4c252249b09adaf5c96e2626a1f74')

build() {
  cd "${srcdir}/daq-${pkgver}"

  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}/daq-${pkgver}"
  make DESTDIR="${pkgdir}" install
}
